package task09;

import jdk.nashorn.internal.parser.Scanner;

/**
 * @author Administrator
 */
public class FOR_xxjingzita {
    public static void main(String[] args) {
        System.out.println("输入金字塔多少层");
        java.util.Scanner sc=new java.util.Scanner(System.in);
        int c=sc.nextInt();
        int i=1;
        int k=1;
        int j=1;
       while (i<=c)
//           控制列数，空格
        {

          while (j<=c-i)
            {
                System.out.print("");

                j++;
            }
            while (k<=2*i-1)
            {
                System.out.print("*");
            }
            System.out.print("\n");
          i++;
        }

    }
}
